import {fromJS} from 'immutable';

const defaultState = fromJS({
    panelList:[]
});

export default (state = defaultState, action) => {
    switch (action.type){
        case 'panel_data':
            return state.merge({
                panelList: fromJS(action.panelList),
            });
        default:
            return state;
    }
}